import { addManyBet } from '@/apis/betAPI'
import { addModels } from './readXlsx'
import * as XLSX from 'xlsx'

export async function readBet(wb: XLSX.WorkBook, id: number) {
  const model = {
    btName: '',
    btSpan: 0,
    zoneId: 1,
  } as BetModel
  await addModels(wb, 'bets', model, addManyBet, id)
}
